//
//@File    :	4.12_assgn_st.cpp
//@Time    :	2021/08/03 17:52:41
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	assigning structures  
//

#include <iostream>
struct inflatable
{
    char name[20];
    float volume;
    double price;
};
int main()
{
    using namespace std;
    inflatable bouquet =
    {
        "sunflowers",
        0.20,
        12.49
    };
    inflatable choice;
    cout<<"bouquet:"<<bouquet.name<<" for $";
    cout<<bouquet.price<<endl;

    choice = bouquet;
    cout<<"choice: "<<choice.name<<" for $";
    cout<<choice.price<<endl;
    system("pause");
    return 0;
}